//
//  BaseViewModel.h
//  OSChina
//
//  Created by 8b410-2 on 16/12/22.
//  Copyright © 2016年 abb. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OSCBaseRequestParams.h"
@protocol OSCViewModelServices;

@interface OSCBaseViewModel : NSObject
/// 手动取消信号
@property (nonatomic, strong, readonly) RACSubject *cancelSignal;
/// 请求错误
@property (nonatomic, strong, readonly) RACSubject *errors;
/// 页面即将消失信号
@property (nonatomic, strong, readonly) RACSubject *willDisappearSignal;
/// 服务总线
@property (nonatomic, strong, readonly) id<OSCViewModelServices> services;
/// 标题
@property (nonatomic, copy) NSString *title;
/// viewModel参数
@property (nonatomic, copy, readonly) NSDictionary *params;

- (instancetype)initWithServices:(id<OSCViewModelServices>)services params:(NSDictionary *)params;

- (void)initialize;

- (NSAttributedString *)handleHTMLSting:(NSString *)html;

- (void)presentLoginViewModel;

@end
